package com.keyue.domain.vo.admin;

import lombok.*;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author xms
 */
@Data
@AllArgsConstructor
@ToString
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@SuperBuilder
public class AdminMenuResult implements Serializable {

    private Long id;
    /**
     * 上级菜单ID
     */
    private Long pid;

    /**
     * 子菜单数目
     */
    private Integer subCount;

    /**
     * 类型，目录、菜单、按钮
     */
    private Integer type;

    /**
     * 菜单标题
     */
    private String title;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 组件
     */
    private String component;

    /**
     * 排序
     */
    private Integer menuSort;

    /**
     * 图标
     */
    private String icon;

    /**
     * 路径
     */
    private String path;

    /**
     * 是否为外链 0:否，1：是
     */
    private Integer iFrame;

    /**
     * cache
     */
    private Integer cache;

    /**
     * 权限
     */
    private String permission;

    /**
     * 是否隐藏
     */
    private Integer hidden;

    private List<AdminMenuResult> children;

    private LocalDateTime createTime;
}
